import request from '@/utils/request'
export default {
    // 获取医院设置列表
    getHospSetList(current, limit, searchObj) {
        return request({
            url: `/admin/hosp/hospitalSet/findPageHospSet/${current}/${limit}`,
            method: 'post',
            data: searchObj
        })
    },
    // 添加医院设置
    addHospSet(hospitalSet) {
        return request({
            url: `/admin/hosp/hospitalSet/saveHospitalSet`,
            method: 'post',
            data: hospitalSet
        })
    },
    // 根据Id获取医院设置
    getHospSetById(hospId) {
        return request({
            url: `/admin/hosp/hospitalSet/getHospSet/${hospId}`,
            method: 'get',
            data: hospitalSet
        })
    },
    // 修改医院设置
    updateHospSet(hospitalSet) {
        return request({
            url: `/admin/hosp/hospitalSet/updateHospitalSet`,
            method: 'post',
            data: hospitalSet
        })
    },
    // 逻辑删除医院设置
    deleteHospSetById(hospId) {
        return request({
            url: `/admin/hosp/hospitalSet/removeHospById/${hospId}`,
            method: 'delete'
        })
    },
    // 批量删除
    removeRows(idList) {
        return request({
            url: `/admin/hosp/hospitalSet/batchRemove`,
            method: 'delete',
            data: idList
        })
    },
    //锁定和取消锁定
    lockHospSet(hospId, status) {
        return request({
            url: `/admin/hosp/hospitalSet/lockHospitalSet/${id}/${status}`,
            method: 'put'
        })
    },
    //添加医院设置
    saveHospSet(hospitalSet) {
        return request({
            url: `/admin/hosp/hospitalSet/saveHospitalSet`,
            method: 'post',
            data: hospitalSet
        })
    },
    //医院设置id查询
    getHospSet(hospId) {
        return request({
            url: `/admin/hosp/hospitalSet/getHospSet/${hospId}`,
            method: 'get'
        })
    },
    //修改医院设置
    updateHospSet(hospitalSet) {
        return request({
            url: `/admin/hosp/hospitalSet/updateHospitalSet`,
            method: 'post',
            data: hospitalSet
        })
    }
}